package cn.nupt.service;

import cn.nupt.dao.MemberDAOImpl;
import cn.nupt.model.Member;

public class MemberService {
	//添加会员
	public int addMember(Member member){
		MemberDAOImpl memberDAOImpl = new MemberDAOImpl();
		int row = memberDAOImpl.insertMember(member);
		return row;
	}
	
	//根据手机号查询会员信息
	public Member searchMemByPhone(String phone){
		MemberDAOImpl memberDAOImpl = new MemberDAOImpl();
		Member member = memberDAOImpl.queryMemByPhone(phone);
		return member;
	}
}
